package pattern.visitor;

// 具体访问者类，访问者角色：CEO
public class CeoVisitor implements IVisitor {
    public void visit(Engineer engineer) {
        System.out.println(engineer.getName() + "KPI为：" + engineer.getKpi());
    }

    public void visit(Pm pm) {
        System.out.println(pm.getName() + "KPI为：" + pm.getKpi());
    }
}
